#include <iostream>
using namespace std;

class Point
{
private:
    int x;
    int y;
public:
    Point(int x,int y)
    :x(x),y(y){}
    ~Point(){}
    int getX()
    {
        return x;
    }
    int getY()
    {
        return y;
    }
    void setPoint(int a,int b)
    {
        x=a;
        y=b;
    }
};
class Figure
{
private:
    
public:
    Figure(){}
    ~Figure(){}
    virtual void onDraw()=0;
};
class Circle:public Figure
{
private:
    Point center;
    int radius;
public:
    Circle(int x,int y,int radius)
    :center(x,y),radius(radius){}
    ~Circle(){}
    Point getCenter()
    {
        return center;
    }
    int getRadius()
    {
        return radius;
    }
    void setCenter()
    {
        int a,b;
        cout<<"please input x y:"<<endl;
        center.setPoint(a,b);
    }
    void setRadius()
    {
        cout<<"please input radius:"<<endl;
        cin>>radius;
    }
    void onDraw()
    {
        cout<<"center:"<<"("<<center.getX()<<","<<center.getY()<<")"<<endl;
        cout<<"radius:"<<radius<<endl;
    }
};

int main(int argc,char*argv[])
{
    Figure *c1 = new Circle(1,2,3);
    c1->onDraw();
    return 0;
}